//
//  ViewController.swift
//  BuilderPatternDemo
//
//  Created by 好米有易 on 2017/9/28.
//  Copyright © 2017年 好米有易. All rights reserved.
//

import UIKit

class ViewController: UIViewController, UITableViewDelegate {



   
    /// VegBurgerAction
    ///
    /// - Parameter sender: UIButton
    @IBAction func VegBurger(_ sender: UIButton) {
        let mealBuilder = MealBuilder.VegBurgerItem()

        mealBuilder.getFoodItemInfo()

    }
    
    /// ChickenBurgerAction
    ///
    /// - Parameter sender: UIButton
    @IBAction func ChickenBurger(_ sender: UIButton) {
        let mealBuilder = MealBuilder.ChickenBurgerItem()
        
        mealBuilder.getFoodItemInfo()
    }
    
    /// WrapperAction
    ///
    /// - Parameter sender: UIButton
    @IBAction func Wrapper(_ sender: UIButton) {
        let mealBuilder = MealBuilder.CokeItem()
        
        mealBuilder.getFoodItemInfo()
    }
    
    /// BottleAction
    ///
    /// - Parameter sender: UIButton
    @IBAction func Bottle(_ sender: UIButton) {
        let mealBuilder = MealBuilder.PesiItem()
        
        mealBuilder.getFoodItemInfo()
    }

}

